#ifndef AUTOPTR_H
#define AUTOPTR_H


template <class T>
class AutoPtr
{
public:
    AutoPtr(T *t){m_t = t;}
    ~AutoPtr(){}

    AutoPtr  operator = (const AutoPtr &other){
        this->m_t = other.m_t;
        return *this;
    }

private:
    T* m_t;
};

#endif // AUTOPTR_H
